package com.system.ad.service.impl;

import com.system.ad.utils.PageUtils;
import com.system.ad.utils.Query;
import org.springframework.stereotype.Service;

import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.system.ad.dao.CreativeDao;
import com.system.ad.entity.CreativeEntity;
import com.system.ad.service.CreativeService;


@Service("creativeService")
public class CreativeServiceImpl extends ServiceImpl<CreativeDao, CreativeEntity> implements CreativeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CreativeEntity> page = this.page(
                new Query<CreativeEntity>().getPage(params),
                new QueryWrapper<CreativeEntity>()
        );

        return new PageUtils(page);
    }

}